import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'




//批量客户签约协议管理应答录入查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/BatchCustsSignPtlMgtRspEntry/search`,
}

//批量客户签约协议管理应答录入明细查询
export const apiUrlConfigDetailQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/BatchCustsSignPtlMgtRspEntry/detailsearch`,
}

export function datchCustsSignPtlMgtRspEntryDetailQuery(id) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/BatchCustsSignPtlMgtRspEntry/detailsearch?id=${id}`,
    method: 'post',
    data: {
      current: 1,
      limit: 20
    }
  })
}

// 批量客户签约协议管理应答录入明细查询明细
export function BatchCustsSignPtlMgtRspEntryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/BatchCustsSignPtlMgtRspEntry/detail`,
    method: 'get',
    params: { id:data.id }
  })
}


// 批量客户签约协议管理应答录入提交
export function BatchCustsSignPtlMgtRspEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/BatchCustsSignPtlMgtRspEntry/save`,
    method: 'post',
    data:data
  })
}
